package com.xinlong.service;

import com.xinlong.entity.Member;
import com.xinlong.entity.Orders;
import com.xinlong.entity.Traveller;


import java.util.List;

public interface Ordersservice {

    /**
     * 根据条件查询订单信息
     * @param page
     * @param size
     * @param orderNum
     * @return
     * @throws Exception
     */
    List<Orders> findAll(int page,int size,String orderNum,String orderStatus) throws Exception;

    Orders findbyidAll(String id) throws Exception;

    int saveOrder(List<Traveller> travellers, Member member,String productId,String orderDesc,String routeId)throws Exception;

    /**
     * 修改成员信息
     * @param member
     * @return
     */
    int update(Member member, List<Traveller> travellers,String productId,String orderDesc,String routeId,String orderNum) throws Exception;

    /**
     * 定时修改订单状态
     * @return
     */
    void updateStatus();


}
